/**获取当前用户 */
import { request } from "@utils/request";
let apiUrl = process.env.VUE_APP_API_URL
const userInfoUrl = {
  getUserUrl: `${apiUrl}/iam/hzero/v1/users/self`,
  getUserRoles: `${apiUrl}/iam/hzero/v1/member-roles/self-roles`,
}
export function getUser(parameter) {
  return request({
    url: userInfoUrl.getUserUrl,
    method: "get",
  });
}
export function getUserRoles(parameter) {
  return request({
    url: userInfoUrl.getUserRoles,
    method: "get",
  });
}
// http://wms-test-api.sany.com.cn/iam/hzero/v1/users/self
// http://wms-test-api.sany.com.cn/iam/hzero/v1/member-roles/self-roles
// http://wms-test-api.sany.com.cn/iam/hzero/v1/menus/tree?lang=zh_CN&roldId=12&unionLabel=false lang 语⾔ 第1步返回的language字段 roleId ⻆⾊Id， ⻆⾊切换的时候切换的⻆⾊id unionLabel 是否⻆⾊合并